<?php
/* @var $this ImgsController */
/* @var $model Imgs */

$this->breadcrumbs=array(
	'Imgs'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List Imgs', 'url'=>array('index')),
	array('label'=>'Create Imgs', 'url'=>array('create')),
	array('label'=>'Update Imgs', 'url'=>array('update', 'id'=>$model->aid)),
	array('label'=>'Delete Imgs', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->aid),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Imgs', 'url'=>array('admin')),
);
?>

<h1>#<?php echo $model->aid; ?><a href="<?php
if($model->type==0){
    echo '/index.php/imgs/list_imei';
}elseif($model->type==1){
    echo '/index.php/imgs/list_place';
}elseif($model->type==2){
    echo '/index.php/imgs/list_post';
}elseif($model->type==3){
    echo '/index.php/imgs/list_imgs';
}
?>" class="l-btn" id=""><span class="l-btn-left"><span class="l-btn-text">返回</span></span></a></h1>


<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
//		'aid',
		'title',
		'content',
        array(
            'label'=>'图片',
            'type'=>'image',
            'value'=>Yii::app()->baseUrl.$model->img,
        ),
        'longitude',
        'latitude',
        array('name'=>'ctime','value'=>date("Y-m-d H:i:s", $model->ctime)),
//        'url',
//		'cid',
//		'type',
//		'order',
//		'enabled',
	),
)); ?>
